//
//  UpdateUserBaseInfoOperation.m
//  PlayBall
//
//  Created by Edward Zhang on 12-5-24.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "JddUpdateUserBaseInfoOperation.h"

@implementation JddUpdateUserBaseInfoOperation

@synthesize realName;
@synthesize idcard;
@synthesize mobile;

- (void)main{
    JddNetDataCommunication *netDataCommunication = [[JddNetDataCommunication alloc] init];
    
    NSString *bodyString = [JddParameterBuilder updateUserBaseInfoParameterWithRealName:self.realName idcard:self.idcard mobile:self.mobile];
    
    NSData *dataMobile = [netDataCommunication requestDataByPostBodyData:[bodyString dataUsingEncoding:NSUTF8StringEncoding]];
    [((NSObject*)self.delegate) performSelectorOnMainThread:@selector(UpdateUserBaseInfoOperationResult:) withObject:dataMobile waitUntilDone:NO];    
}

@end
